import { stringify } from 'qs';
import request from '@/utils/request';

export async function queryShop(params) {
  return request('/venueInfo/list', {
    method: 'POST',
    body: {
      ...params
    },
  });
}


export async function removeShop(params) {
  return request(`/venueInfo/delete?${stringify(params)}`);
}

export async function batchRemoveShop(params) {
  return request(`/venueInfo/batchDeleteVenueInfoByIds?${stringify(params, { arrayFormat: 'repeat' })}`);
}

export async function addShop(params) {
  return request('/venueInfo/save', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

export async function updateShop(params) {
  return request('/venueInfo/update', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

